package com.springboot.demo.service;



import com.springboot.demo.entity.BaseSetup;
import com.springboot.demo.mapper.BaseSetupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaseSetupService {
    @Autowired
    BaseSetupMapper baseSetupMapper;

    public int getFineValue()
    {
        BaseSetup baseSetup= baseSetupMapper.getbase("fine");
        return baseSetup.getValue();
    }

    public int getRTValue()
    {
        return baseSetupMapper.getbase("return_time").getValue();
    }

    public int getDepositValue()
    {
        return baseSetupMapper.getbase("deposit").getValue();
    }


}
